package com.lin.chapter36;

public class Commoner extends EventCustomer {
    public Commoner() {
        super(EventCustomType.NEW);
    }

    @Override
    public void exec(ProductEvent event) {
        Product source = event.getSource();
        ProductEventType eventType = event.getEventType();
        System.out.println("平民处理事件：" + source.getName() + "诞生记，事件类型=" + eventType);
    }
}
